//
//  TransApi.swift
//  SwiftApiTrans
//
//  Created by 袁炳生 on 2024/8/1.
//

import UIKit

class TransApi: NSObject {
    static func dirUrls() -> URL? {
        guard let dirPath = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first else { return nil }
       
        return dirPath
    }
    
    static func dirUrlString() -> String? {
        let hos = NSHomeDirectory()
        let dirPathStr = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first
        return dirPathStr
    }
}

